const io = require('socket.io');
let server=io("8080");
server.sockets.on('connection',function (socket) {
    socket.on('test',function (name) {
        console.log(name);
socket.broadcast.emit('test1',"hello world")
    })
});